From 20bca390954517ead2020ded3d90308aa266343c Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Apr 2005 20:06:16 +0000 Subject: [PATCH] Justin fixes CoastalExplorer route handling. --- gpsbabel/coastexp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpsbabel/coastexp.c b/gpsbabel/coastexp.c index 985208950..15b50aae3 100755 --- a/gpsbabel/coastexp.c +++ b/gpsbabel/coastexp.c @@ -139,10 +139,11 @@ ce_start(void *data, const char *el, const char **attr) // Create a CE route object and add it to the list of routes currentRoute = (ce_route *) xcalloc(sizeof (ce_route), 1); currentRoute->id=xstrdup(ap[1]); - if (doing_rtes) - currentRoute->r = route_head_alloc(); + if (doing_rtes) + currentRoute->r = route_head_alloc(); QUEUE_INIT(¤tRoute->ce_mark_head); - ce_add_route(currentRoute); + if (doing_rtes) + ce_add_route(currentRoute); } } } else if (0 == strcmp(el, "Mark")) { -- 2.30.2